<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.4"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Body_Health_Sensor: Body_Health_Sensor.h 源文件</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">Body_Health_Sensor
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.4 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search",'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle"><div class="title">Body_Health_Sensor.h</div></div>
</div><!--header-->
<div class="contents">
<a href="Body__Health__Sensor_8h.html">浏览该文件的文档.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno">    1</span> </div>
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno">   10</span><span class="preprocessor">#ifndef _BODY_HEALTH_SENSOR_H_</span></div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno">   11</span><span class="preprocessor">#define _BODY_HEALTH_SENSOR_H_</span></div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno">   12</span> </div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"><a class="line" href="Body__Health__Sensor_8h.html#ab077fa1127453be2bd9d4c3c8a768fa7">   13</a></span><span class="preprocessor">#define uint8_t unsigned char</span></div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno">   14</span> </div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"><a class="line" href="Body__Health__Sensor_8h.html#ae35eda22b5a842d1a1e44966a645ce6c">   21</a></span><span class="preprocessor">#define SEND_START_SEQ();  {  Serial.write(0xA5);  Serial.write(0xA1);  }  </span></div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"><a class="line" href="Body__Health__Sensor_8h.html#af001f6225fcaa6c2c2dc8b08f52a57cb">   22</a></span><span class="preprocessor">#define SEND_END_SEQ();    {  Serial.write(0xA5);  Serial.write(0xA2);  }  </span></div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno">   23</span> </div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"><a class="line" href="structBodyHeathSensor.html">   27</a></span><span class="keyword">typedef</span> <span class="keyword">struct</span>{</div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"><a class="line" href="structBodyHeathSensor.html#a2b955614a1389cfe49440d9c1054ecb0">   28</a></span>    <a class="code hl_define" href="Body__Health__Sensor_8h.html#ab077fa1127453be2bd9d4c3c8a768fa7">uint8_t</a> head[2];           </div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"><a class="line" href="structBodyHeathSensor.html#a62eb91c6d8c95406d41074a335109e27">   29</a></span>    <a class="code hl_define" href="Body__Health__Sensor_8h.html#ab077fa1127453be2bd9d4c3c8a768fa7">uint8_t</a> <a class="code hl_variable" href="structBodyHeathSensor.html#a62eb91c6d8c95406d41074a335109e27">heartRate</a>;        </div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"><a class="line" href="structBodyHeathSensor.html#abb3e579c1bdace0081d019e4bca699be">   30</a></span>    <a class="code hl_define" href="Body__Health__Sensor_8h.html#ab077fa1127453be2bd9d4c3c8a768fa7">uint8_t</a> <a class="code hl_variable" href="structBodyHeathSensor.html#abb3e579c1bdace0081d019e4bca699be">bloodOxygen</a>;</div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"><a class="line" href="structBodyHeathSensor.html#aede40a8f777c6b3df2bca269a27b78dc">   31</a></span>    <a class="code hl_define" href="Body__Health__Sensor_8h.html#ab077fa1127453be2bd9d4c3c8a768fa7">uint8_t</a> <a class="code hl_variable" href="structBodyHeathSensor.html#aede40a8f777c6b3df2bca269a27b78dc">microcirculation</a>;</div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"><a class="line" href="structBodyHeathSensor.html#ad837fd62911842ebc34a115686f7f134">   32</a></span>    <a class="code hl_define" href="Body__Health__Sensor_8h.html#ab077fa1127453be2bd9d4c3c8a768fa7">uint8_t</a> bloodPressure[2];  </div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"><a class="line" href="structBodyHeathSensor.html#a44e2133ad73131f98a91999070cb1621">   33</a></span>    <a class="code hl_define" href="Body__Health__Sensor_8h.html#ab077fa1127453be2bd9d4c3c8a768fa7">uint8_t</a> <a class="code hl_variable" href="structBodyHeathSensor.html#a44e2133ad73131f98a91999070cb1621">R2RInterval</a>;</div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"><a class="line" href="structBodyHeathSensor.html#a65ee96c67f599d4da08f8aa0dd5dc89b">   34</a></span>    <a class="code hl_define" href="Body__Health__Sensor_8h.html#ab077fa1127453be2bd9d4c3c8a768fa7">uint8_t</a> <a class="code hl_variable" href="structBodyHeathSensor.html#a65ee96c67f599d4da08f8aa0dd5dc89b">HRV_SDNN</a>;</div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"><a class="line" href="structBodyHeathSensor.html#a2c24d40ada25d6aeb4f03504bb312dcd">   35</a></span>    <a class="code hl_define" href="Body__Health__Sensor_8h.html#ab077fa1127453be2bd9d4c3c8a768fa7">uint8_t</a> <a class="code hl_variable" href="structBodyHeathSensor.html#a2c24d40ada25d6aeb4f03504bb312dcd">HRV_RMSSD</a>;</div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"><a class="line" href="structBodyHeathSensor.html#aef980c827feed489c2e56c03ce8363c7">   36</a></span>    <a class="code hl_define" href="Body__Health__Sensor_8h.html#ab077fa1127453be2bd9d4c3c8a768fa7">uint8_t</a> <a class="code hl_variable" href="structBodyHeathSensor.html#aef980c827feed489c2e56c03ce8363c7">fatigue</a>;</div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"><a class="line" href="structBodyHeathSensor.html#aa26f21e0c63b6ed51eeccbc1cf69b914">   37</a></span>    <a class="code hl_define" href="Body__Health__Sensor_8h.html#ab077fa1127453be2bd9d4c3c8a768fa7">uint8_t</a> <a class="code hl_variable" href="structBodyHeathSensor.html#aa26f21e0c63b6ed51eeccbc1cf69b914">ambientTemp</a>;</div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"><a class="line" href="structBodyHeathSensor.html#ac4c18d269abce32368bd4834e18b5f76">   38</a></span>    <a class="code hl_define" href="Body__Health__Sensor_8h.html#ab077fa1127453be2bd9d4c3c8a768fa7">uint8_t</a> <a class="code hl_variable" href="structBodyHeathSensor.html#ac4c18d269abce32368bd4834e18b5f76">bodyTemp</a>;</div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno">   39</span>}<a class="code hl_struct" href="structBodyHeathSensor.html">BodyHeathSensor</a>;</div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno">   40</span> </div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"><a class="line" href="Body__Health__Sensor_8h.html#a96f2f6dbd3b5d7f3436ff15ded38ac24">   46</a></span><span class="keywordtype">bool</span> <a class="code hl_function" href="Body__Health__Sensor_8h.html#a96f2f6dbd3b5d7f3436ff15ded38ac24">isAvailable</a>(<a class="code hl_struct" href="structBodyHeathSensor.html">BodyHeathSensor</a> bhs)</div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno">   47</span>{</div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno">   48</span>    <span class="keywordflow">return</span> (bhs.<a class="code hl_variable" href="structBodyHeathSensor.html#a2b955614a1389cfe49440d9c1054ecb0">head</a>[0] == 0xff &amp;&amp; bhs.<a class="code hl_variable" href="structBodyHeathSensor.html#a2b955614a1389cfe49440d9c1054ecb0">head</a>[1] == 0x01);</div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno">   49</span>}</div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno">   50</span> </div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno">   51</span><span class="preprocessor">#endif </span></div>
<div class="ttc" id="aBody__Health__Sensor_8h_html_a96f2f6dbd3b5d7f3436ff15ded38ac24"><div class="ttname"><a href="Body__Health__Sensor_8h.html#a96f2f6dbd3b5d7f3436ff15ded38ac24">isAvailable</a></div><div class="ttdeci">bool isAvailable(BodyHeathSensor bhs)</div><div class="ttdef"><b>Definition:</b> Body_Health_Sensor.h:46</div></div>
<div class="ttc" id="aBody__Health__Sensor_8h_html_ab077fa1127453be2bd9d4c3c8a768fa7"><div class="ttname"><a href="Body__Health__Sensor_8h.html#ab077fa1127453be2bd9d4c3c8a768fa7">uint8_t</a></div><div class="ttdeci">#define uint8_t</div><div class="ttdef"><b>Definition:</b> Body_Health_Sensor.h:13</div></div>
<div class="ttc" id="astructBodyHeathSensor_html"><div class="ttname"><a href="structBodyHeathSensor.html">BodyHeathSensor</a></div><div class="ttdoc">human body health monitoring sensor data structure(totally, 16 bytes)</div><div class="ttdef"><b>Definition:</b> Body_Health_Sensor.h:27</div></div>
<div class="ttc" id="astructBodyHeathSensor_html_a2b955614a1389cfe49440d9c1054ecb0"><div class="ttname"><a href="structBodyHeathSensor.html#a2b955614a1389cfe49440d9c1054ecb0">BodyHeathSensor::head</a></div><div class="ttdeci">uint8_t head[2]</div><div class="ttdoc">available data: 0xff, 0x01</div><div class="ttdef"><b>Definition:</b> Body_Health_Sensor.h:28</div></div>
<div class="ttc" id="astructBodyHeathSensor_html_a2c24d40ada25d6aeb4f03504bb312dcd"><div class="ttname"><a href="structBodyHeathSensor.html#a2c24d40ada25d6aeb4f03504bb312dcd">BodyHeathSensor::HRV_RMSSD</a></div><div class="ttdeci">uint8_t HRV_RMSSD</div><div class="ttdef"><b>Definition:</b> Body_Health_Sensor.h:35</div></div>
<div class="ttc" id="astructBodyHeathSensor_html_a44e2133ad73131f98a91999070cb1621"><div class="ttname"><a href="structBodyHeathSensor.html#a44e2133ad73131f98a91999070cb1621">BodyHeathSensor::R2RInterval</a></div><div class="ttdeci">uint8_t R2RInterval</div><div class="ttdef"><b>Definition:</b> Body_Health_Sensor.h:33</div></div>
<div class="ttc" id="astructBodyHeathSensor_html_a62eb91c6d8c95406d41074a335109e27"><div class="ttname"><a href="structBodyHeathSensor.html#a62eb91c6d8c95406d41074a335109e27">BodyHeathSensor::heartRate</a></div><div class="ttdeci">uint8_t heartRate</div><div class="ttdef"><b>Definition:</b> Body_Health_Sensor.h:29</div></div>
<div class="ttc" id="astructBodyHeathSensor_html_a65ee96c67f599d4da08f8aa0dd5dc89b"><div class="ttname"><a href="structBodyHeathSensor.html#a65ee96c67f599d4da08f8aa0dd5dc89b">BodyHeathSensor::HRV_SDNN</a></div><div class="ttdeci">uint8_t HRV_SDNN</div><div class="ttdef"><b>Definition:</b> Body_Health_Sensor.h:34</div></div>
<div class="ttc" id="astructBodyHeathSensor_html_aa26f21e0c63b6ed51eeccbc1cf69b914"><div class="ttname"><a href="structBodyHeathSensor.html#aa26f21e0c63b6ed51eeccbc1cf69b914">BodyHeathSensor::ambientTemp</a></div><div class="ttdeci">uint8_t ambientTemp</div><div class="ttdef"><b>Definition:</b> Body_Health_Sensor.h:37</div></div>
<div class="ttc" id="astructBodyHeathSensor_html_abb3e579c1bdace0081d019e4bca699be"><div class="ttname"><a href="structBodyHeathSensor.html#abb3e579c1bdace0081d019e4bca699be">BodyHeathSensor::bloodOxygen</a></div><div class="ttdeci">uint8_t bloodOxygen</div><div class="ttdef"><b>Definition:</b> Body_Health_Sensor.h:30</div></div>
<div class="ttc" id="astructBodyHeathSensor_html_ac4c18d269abce32368bd4834e18b5f76"><div class="ttname"><a href="structBodyHeathSensor.html#ac4c18d269abce32368bd4834e18b5f76">BodyHeathSensor::bodyTemp</a></div><div class="ttdeci">uint8_t bodyTemp</div><div class="ttdef"><b>Definition:</b> Body_Health_Sensor.h:38</div></div>
<div class="ttc" id="astructBodyHeathSensor_html_aede40a8f777c6b3df2bca269a27b78dc"><div class="ttname"><a href="structBodyHeathSensor.html#aede40a8f777c6b3df2bca269a27b78dc">BodyHeathSensor::microcirculation</a></div><div class="ttdeci">uint8_t microcirculation</div><div class="ttdef"><b>Definition:</b> Body_Health_Sensor.h:31</div></div>
<div class="ttc" id="astructBodyHeathSensor_html_aef980c827feed489c2e56c03ce8363c7"><div class="ttname"><a href="structBodyHeathSensor.html#aef980c827feed489c2e56c03ce8363c7">BodyHeathSensor::fatigue</a></div><div class="ttdeci">uint8_t fatigue</div><div class="ttdef"><b>Definition:</b> Body_Health_Sensor.h:36</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.4
</small></address>
</body>
</html>
